﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Test9
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime dt;
            Console.WriteLine("请输入出生日期：");
            DateTime.TryParse(Console.ReadLine(), out dt);
            
            DateTime nowtime;
            DateTime.TryParse("2020-6-8", out nowtime);
            TimeSpan ts1 = nowtime - dt;
            Console.WriteLine(ts1.Days / 366);
            dt = dt.AddYears(80);
            TimeSpan ts = dt - nowtime;
            
             Console.WriteLine(ts .Days  );


            string st = "this is a test  ";
            Console.WriteLine(st.Trim());
            Console.WriteLine(st.Replace(" "," "));

        }
    }
}
